import request from '@/utils/request'

// 查询压力专题列表
export function listDispatchPressureSpecialSubject(query) {
  return request({
    url: '/dispatch/analyze/dispatchPressureSpecialSubject/list',
    method: 'get',
    params: query
  })
}

// 查询压力专题详细
export function getDispatchPressureSpecialSubject(pressureSpecialSubjectId) {
  return request({
    url: '/dispatch/analyze/dispatchPressureSpecialSubject/' + pressureSpecialSubjectId,
    method: 'get'
  })
}

// 新增压力专题
export function addDispatchPressureSpecialSubject(data) {
  return request({
    url: '/dispatch/analyze/dispatchPressureSpecialSubject',
    method: 'post',
    data: data
  })
}

// 修改压力专题
export function updateDispatchPressureSpecialSubject(data) {
  return request({
    url: '/dispatch/analyze/dispatchPressureSpecialSubject',
    method: 'put',
    data: data
  })
}

// 删除压力专题
export function delDispatchPressureSpecialSubject(pressureSpecialSubjectId) {
  return request({
    url: '/dispatch/analyze/dispatchPressureSpecialSubject/' + pressureSpecialSubjectId,
    method: 'delete'
  })
}
